package com.supcon.exchangedata.repository.slave6;


import com.supcon.exchangedata.pojo.entity.mysql.operation.hj.HjCarWaitInfo;
import com.supcon.exchangedata.pojo.entity.mysql.operation.hj.HjGarbageCleanAll;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *   车辆等待时长
 * @Author: yangbin
 * @Date: 2022/04/20/9:00
 * @Description:
 */
public interface SlaveHjOperationInfo6 extends JpaRepository<HjCarWaitInfo, Long> {


    @Transactional
    @Query(nativeQuery = true, value = "SELECT * FROM hj_car_wait_info ORDER BY biz_time DESC LIMIT 1")
    HjCarWaitInfo getTopData();




}
